import request from "@/utils/request";

// 1.列表
export const airlineCompany_ListAPI = (params) => {
  return request({
    url: "/base/manage/airCompanyInfo/list",
    params,
  });
};
// 获取航空公司详细信息
export const airlineCompany_DetailsAPI = (params) => {
  return request({
    url: `/manage/airCompanyInfo/getInfo/${id}`,
    params,
  });
};
// 1.新增
export const airlineCompany_AddAPI = (data) => {
  return request({
    url: "/base/manage/airCompanyInfo/save",
    method: "post",
    data,
  });
};
// 1.编辑
export const airlineCompany_EditAPI = (data) => {
  return request({
    url: "/base/manage/airCompanyInfo/save",
    method: "put",
    data,
  });
};
// 1.删除
export const airlineCompany_DelAPI = (ids) => {
  return request({
    url: `/base/manage/airCompanyInfo/del/${ids}`,
    method: "delete",
  });
};
//2.导出
export const airlineCompany_ExportAPI = () => {
  return request({
    url: "/base/manage/airCompanyInfo/export",
    method: "post",
  });
};
